package com.wechatFriendExportTool.pojo;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author JiXin
 * @date 2023/9/19 下午5:02
 */
public class BoundPojo implements Serializable {

    private Integer x;

    private Integer y;

    private Integer width;

    private Integer height;

    public BoundPojo() {
    }

    public BoundPojo(Integer x, Integer y, Integer width, Integer height) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
    }

    public Integer getX() {
        return x;
    }

    public void setX(Integer x) {
        this.x = x;
    }

    public Integer getY() {
        return y;
    }

    public void setY(Integer y) {
        this.y = y;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BoundPojo boundPojo = (BoundPojo) o;
        return Objects.equals(x, boundPojo.x) && Objects.equals(y, boundPojo.y) && Objects.equals(width, boundPojo.width) && Objects.equals(height, boundPojo.height);
    }

    @Override
    public int hashCode() {
        return Objects.hash(x, y, width, height);
    }
}
